FHIR © HL7.org  |  Server Home  |  FHIR Server FHIR Server 3.7.16  |  FHIR Version n/a  User: [n/a]

Resource PlanDefinition/FHIR Server from package smart.who.int.anc#current (156 ms)

Package smart.who.int.anc
Type PlanDefinition
Id Id
FHIR Version R4
Source http://smart.who.int/anc/https://build.fhir.org/ig/WorldHealthOrganization/smart-anc/PlanDefinition-ANCDT15.html
Url http://smart.who.int/anc/PlanDefinition/ANCDT15
Version 0.3.0
Status active
Date 2025-06-24T13:58:48-06:00
Name ANCDT15
Title ANC.DT.15 Behaviour counselling required
Experimental False
Realm uv
Authority who
Description Depending on the woman's behaviours reported during the first contact and the woman's reported persistent behaviours, additional counselling may or may not be required

Resources that use this resource

No resources found


Resources that this resource uses

No resources found



Narrative

Note: links and images are rebased to the (stated) source

Id: ANCDT15
Url: ANC.DT.15 Behaviour counselling required
Version: 0.3.0
Official

ANC.DT.15

Title: ANC.DT.15 Behaviour counselling required
Type:

system: http://terminology.hl7.org/CodeSystem/plan-definition-type

code: eca-rule

Date: 2025-06-24 13:58:48-0600
Publisher: World Health Organization (WHO)
Description:

Depending on the woman's behaviours reported during the first contact and the woman's reported persistent behaviours, additional counselling may or may not be required

Use Context:
code value
task
Jurisdiction: 001
Libraries:
ANC.DT.15 Behaviour counselling required
Actions:
ANC.DT.15 Behaviour counselling required:
When: Named Event: ANC.B10. Counselling, in-facility management & treatment
Then:
Lowering daily caffeine intake during pregnancy is recommended to reduce the risk of pregnancy loss and low-birth-weight neonates. This includes any product, beverage or food containing caffeine (e.g. brewed coffee, tea, cola-type soft drinks, caffeinated energy drinks, chocolate, caffeine tablets); caffeine-containing teas (black tea and green tea) and soft drinks (colas and iced tea) usually contain less than 50 mg per 250 ml serving
If: Applicability: (((((((((("Daily caffeine intake" = "More than 2 cups of coffee (brewed, filter, instant or espresso)") OR ("Daily caffeine intake" = "More than 4 cups of tea")) OR ("Daily caffeine intake" = "More than 12 bars (50g) of chocolate")) OR ("Daily caffeine intake" = "More than one can of soda or energy drink")) OR ("Daily caffeine intake" = "None of the above daily caffeine intake")) OR (IF "Daily caffeine intake" = "More than 2 cups of coffee (brewed, filter, instant, or espresso)" ON MORE THAN ONE CONTACT)) OR (IF "Daily caffeine intake" = "More than 4 cups of tea" ON MORE THAN ONE CONTACT)) OR (IF "Daily caffeine intake" = "More than 12 bars (50 g) of chocolate" ON MORE THAN ONE CONTACT)) OR (IF "Daily caffeine intake" = "More than one can of soda or energy drink" ON MORE THAN ONE CONTACT)) OR (IF "Daily caffeine intake" = "None of the above daily caffeine intake" ON MORE THAN ONE CONTACT)) OR ("Persistant behaviours" = "High caffeine intake") (Should Conduct counselling on caffeine reduction)
Health-care providers should routinely offer advice and psychosocial interventions for tobacco cessation to all pregnant women who are either current tobacco users or recent tobacco quitters
If: Applicability: (((("Tobacco use" = TRUE) OR (IF "Tobacco use" = TRUE ON MORE THAN ONE CONTACT)) OR ("Recently quit tobacco products" = TRUE)) OR (IF "Recently quit tobacco products" = TRUE ON MORE THAN ONE CONTACT)) OR ("Persistant behaviours" = "Current tobacco use or recently quit") (Should Conduct counselling on tobacco cessation)
Provide pregnant women, their partners and other household members with advice and information about the risks of second-hand smoke (SHS) exposure from all forms of smoked tobacco, as well as strategies to reduce SHS in the home
If: Applicability: (("Exposure to second"hand smoke" = TRUE) OR (IF "Exposure to second-hand smoke" = TRUE ON MORE THAN ONE CONTACT)) OR ("Persistent behaviours" = "Exposure to second-hand smoke in the home") (Should Conduct counselling on second-hand smoke)
Advise to use condoms to prevent Zika, HIV and other STIs; if necessary, reassure it is OK to continue to have sex during pregnancy
If: Applicability: (((("Contraceptive use of male condoms" = FALSE) OR ("Contraceptive use of female condoms" = FALSE)) OR (IF "Contraceptive use of male condoms" = FALSE ON MORE THAN ONE CONTACT)) OR (IF "Contraceptive use of female condoms" = FALSE ON MORE THAN ONE CONTACT)) OR ("Persistent behaviours" = "No condom use during sex") (Should Conduct counselling on condom use)
Health-care providers should at the earliest opportunity advise pregnant women dependent on alcohol or drugs to cease their alcohol or drug use and offer, or refer them to, detoxification services under medical supervision, where necessary and applicable
If: Applicability: ((((("Current alcohol and/or other substance use" = "Alcohol") OR (IF "Current alcohol and/or other substance use" = "Alcohol" ON MORE THAN ONE CONTACT)) OR ("Persistent behaviours" = "Alcohol use")) OR ("Current alcohol and/or other substance use" = "Marijuana" AND/OR "Cocaine" AND/OR "Crack" AND/OR "Injectable drugs" AND/OR "Other substance use (specify)")) OR (IF "Current alcohol and/or other substance use" = "Marijuana" AND/OR "Cocaine" AND/OR "Crack" AND/OR "Injectable drugs" AND/OR "Other substance use (specify)" ON MORE THAN ONE CONTACT)) OR ("Persistent behaviours" = "Substance use") (Should Conduct counselling on alcohol/substance use)

Source

{
  "resourceType" : "PlanDefinition",
  "id" : "ANCDT15",
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n<div>\n <table class=\"grid dict\">\n \n <tr>\n <th scope=\"row\"><b>Id: </b></th>\n <td style=\"padding-left: 4px;\">ANCDT15</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Url: </b></th>\n <td style=\"padding-left: 4px;\"><a href=\"PlanDefinition-ANCDT15.html\">ANC.DT.15 Behaviour counselling required</a></td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Version: </b></th>\n <td style=\"padding-left: 4px;\">0.3.0</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\">\n <b>\n \n Official\n \n </b>\n </th>\n <td style=\"padding-left: 4px;\">\n \n <p style=\"margin-bottom: 5px;\">\n <span>ANC.DT.15</span>\n </p>\n \n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Title: </b></th>\n <td style=\"padding-left: 4px;\">ANC.DT.15 Behaviour counselling required</td>\n </tr>\n \n\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Type: </b></th>\n <td style=\"padding-left: 4px;\">\n \n \n \n <p style=\"margin-bottom: 5px;\">\n <b>system: </b> <span><a href=\"http://terminology.hl7.org/6.4.0/CodeSystem-plan-definition-type.html\">http://terminology.hl7.org/CodeSystem/plan-definition-type</a></span>\n </p>\n \n \n <p style=\"margin-bottom: 5px;\">\n <b>code: </b> <span>eca-rule</span>\n </p>\n \n \n \n \n \n </td>\n </tr>\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Date: </b></th>\n <td style=\"padding-left: 4px;\">2025-06-24 13:58:48-0600</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Publisher: </b></th>\n <td style=\"padding-left: 4px;\">World Health Organization (WHO)</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Description: </b></th>\n <td style=\"padding-left: 4px;\"><div><p>Depending on the woman's behaviours reported during the first contact and the woman's reported persistent behaviours, additional counselling may or may not be required</p>\n</div></td>\n </tr>\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Use Context: </b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n <tr>\n <th><b>code</b></th>\n <th><b>value</b></th>\n </tr>\n \n <tr>\n <td>task</td>\n <td/>\n </tr>\n \n </table>\n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Jurisdiction: </b></th>\n <td style=\"padding-left: 4px;\">001</td>\n </tr>\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Libraries: </b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n \n <tr>\n <td><a href=\"Library-ANCDT15.html\">ANC.DT.15 Behaviour counselling required</a></td>\n </tr>\n \n </table>\n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Actions: </b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n \n <tr>\n <td>\n \n <b> ANC.DT.15 Behaviour counselling required:</b> \n \n <br/>\n \n <b>When:</b>\n \n <i>Named Event:</i> ANC.B10. Counselling, in-facility management &amp; treatment \n <br/>\n \n \n \n \n <b>Then:</b>\n <table class=\"grid-dict\">\n \n <tr>\n <td>\n \n Lowering daily caffeine intake during pregnancy is recommended to reduce the risk of pregnancy loss and low-birth-weight neonates.\n\nThis includes any product, beverage or food containing caffeine (e.g. brewed coffee, tea, cola-type soft drinks, caffeinated energy drinks, chocolate, caffeine tablets); caffeine-containing teas (black tea and green tea) and soft drinks (colas and iced tea) usually contain less than 50 mg per 250 ml serving\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n ((((((((((&quot;Daily caffeine intake&quot; = &quot;More than 2 cups of coffee (brewed, filter, instant or espresso)&quot;)\n OR (&quot;Daily caffeine intake&quot; = &quot;More than 4 cups of tea&quot;))\n OR (&quot;Daily caffeine intake&quot; = &quot;More than 12 bars (50g) of chocolate&quot;))\n OR (&quot;Daily caffeine intake&quot; = &quot;More than one can of soda or energy drink&quot;))\n OR (&quot;Daily caffeine intake&quot; = &quot;None of the above daily caffeine intake&quot;))\n OR (IF &quot;Daily caffeine intake&quot; = &quot;More than 2 cups of coffee (brewed, filter, instant, or espresso)&quot; ON MORE THAN ONE CONTACT))\n OR (IF &quot;Daily caffeine intake&quot; = &quot;More than 4 cups of tea&quot; ON MORE THAN ONE CONTACT))\n OR (IF &quot;Daily caffeine intake&quot; = &quot;More than 12 bars (50 g) of chocolate&quot; ON MORE THAN ONE CONTACT))\n OR (IF &quot;Daily caffeine intake&quot; = &quot;More than one can of soda or energy drink&quot; ON MORE THAN ONE CONTACT))\n OR (IF &quot;Daily caffeine intake&quot; = &quot;None of the above daily caffeine intake&quot; ON MORE THAN ONE CONTACT))\n OR (&quot;Persistant behaviours&quot; = &quot;High caffeine intake&quot;)\n \n <i>(Should Conduct counselling on caffeine reduction)</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n Health-care providers should routinely offer advice and psychosocial interventions for tobacco cessation to all pregnant women who are either current tobacco users or recent tobacco quitters\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n ((((&quot;Tobacco use&quot; = TRUE)\n OR (IF &quot;Tobacco use&quot; = TRUE ON MORE THAN ONE CONTACT))\n OR (&quot;Recently quit tobacco products&quot; = TRUE))\n OR (IF &quot;Recently quit tobacco products&quot; = TRUE ON MORE THAN ONE CONTACT))\n OR (&quot;Persistant behaviours&quot; = &quot;Current tobacco use or recently quit&quot;)\n \n <i>(Should Conduct counselling on tobacco cessation)</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n Provide pregnant women, their partners and other household members with advice and information about the risks of second-hand smoke (SHS) exposure from all forms of smoked tobacco, as well as strategies to reduce SHS in the home\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n ((&quot;Exposure to second&quot;hand smoke&quot; = TRUE)\n OR (IF &quot;Exposure to second-hand smoke&quot; = TRUE ON MORE THAN ONE CONTACT))\n OR (&quot;Persistent behaviours&quot; = &quot;Exposure to second-hand smoke in the home&quot;)\n \n <i>(Should Conduct counselling on second-hand smoke)</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n Advise to use condoms to prevent Zika, HIV and other STIs; if necessary, reassure it is OK to continue to have sex during pregnancy\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n ((((&quot;Contraceptive use of male condoms&quot; = FALSE)\n OR (&quot;Contraceptive use of female condoms&quot; = FALSE))\n OR (IF &quot;Contraceptive use of male condoms&quot; = FALSE ON MORE THAN ONE CONTACT))\n OR (IF &quot;Contraceptive use of female condoms&quot; = FALSE ON MORE THAN ONE CONTACT))\n OR (&quot;Persistent behaviours&quot; = &quot;No condom use during sex&quot;)\n \n <i>(Should Conduct counselling on condom use)</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n Health-care providers should at the earliest opportunity advise pregnant women dependent on alcohol or drugs to cease their alcohol or drug use and offer, or refer them to, detoxification services under medical supervision, where necessary and applicable\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n (((((&quot;Current alcohol and/or other substance use&quot; = &quot;Alcohol&quot;)\n OR (IF &quot;Current alcohol and/or other substance use&quot; = &quot;Alcohol&quot; ON MORE THAN ONE CONTACT))\n OR (&quot;Persistent behaviours&quot; = &quot;Alcohol use&quot;))\n OR (&quot;Current alcohol and/or other substance use&quot; = &quot;Marijuana&quot; AND/OR &quot;Cocaine&quot; AND/OR &quot;Crack&quot; AND/OR &quot;Injectable drugs&quot; AND/OR &quot;Other substance use (specify)&quot;))\n OR (IF &quot;Current alcohol and/or other substance use&quot; = &quot;Marijuana&quot; AND/OR &quot;Cocaine&quot; AND/OR &quot;Crack&quot; AND/OR &quot;Injectable drugs&quot; AND/OR &quot;Other substance use (specify)&quot; ON MORE THAN ONE CONTACT))\n OR (&quot;Persistent behaviours&quot; = &quot;Substance use&quot;)\n \n <i>(Should Conduct counselling on alcohol/substance use)</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n </table>\n \n </td>\n </tr>\n \n </table>\n </td>\n </tr>\n \n </table>\n</div>\n</div>"
  },
  "contained" : [
    {
      "resourceType" : "Library",
      "id" : "effective-data-requirements",
      "name" : "EffectiveDataRequirements",
      "status" : "active",
      "type" : {
        "coding" : [
          {
            "system" : "http://terminology.hl7.org/CodeSystem/library-type",
            "code" : "module-definition"
          }
        ]
      },
      "relatedArtifact" : [
        {
          "type" : "depends-on",
          "display" : "Library ContactData",
          "resource" : "http://smart.who.int/anc/Library/ANCContactDataElements"
        },
        {
          "type" : "depends-on",
          "display" : "Library Cx",
          "resource" : "http://smart.who.int/anc/Library/ANCConcepts"
        },
        {
          "type" : "depends-on",
          "display" : "Library FHIRHelpers",
          "resource" : "http://smart.who.int/anc/Library/FHIRHelpers|4.0.1"
        },
        {
          "type" : "depends-on",
          "display" : "Library WC",
          "resource" : "http://smart.who.int/anc/Library/WHOCommon"
        },
        {
          "type" : "depends-on",
          "display" : "Library PatientData",
          "resource" : "http://smart.who.int/anc/Library/ANCDataElements"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Daily caffeine intake",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de139"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Daily caffeine intake - More than 2 cups of coffee Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de140"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Daily caffeine intake - More than 4 cups of tea Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de141"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Daily caffeine intake - More than 12 bars of chocolate Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de142"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Daily caffeine intake - More than one can of soda or energy drink Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de143"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Daily caffeine intake - None of the above daily caffeine intake Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de144"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Persistent behaviours",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b7-ded9"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Persistent behaviours - High caffeine intake Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b7-de10"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Current alcohol and/or other substance use",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de146"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Current alcohol and/or other substance use - Alcohol Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de148"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Persistent behaviours - Alcohol use Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b7-de15"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Current alcohol and/or other substance use - Marijuana Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de151"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Current alcohol and/or other substance use - Cocaine Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de149"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Current alcohol and/or other substance use - Injectable drugs Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de150"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Current alcohol and/or other substance use - Other (specify) Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de152"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Persistent behaviours - Substance use Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b7-de16"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Tobacco use",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de153"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Recently quit tobacco products",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de154"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Persistent behaviours - Recently quit tobacco products Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b7-de12"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Exposure to second-hand smoke",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de155"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Persistent behaviours - Exposure to second-hand smoke Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b7-de13"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Contraceptive use of male condoms",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de160"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Contraceptive use of female condoms",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de161"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Persistent behaviours - No condom use during sex Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b7-de14"
        }
      ],
      "parameter" : [
        {
          "name" : "encounter",
          "use" : "in",
          "min" : 0,
          "max" : "1",
          "type" : "string"
        },
        {
          "name" : "Should Conduct counselling on caffeine reduction",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Should Conduct counselling on alcohol/substance use",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Should Conduct counselling on tobacco cessation",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Should Conduct counselling on second-hand smoke",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Should Conduct counselling on condom use",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        }
      ],
      "dataRequirement" : [
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference",
            "value"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b6-de139"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference",
            "value"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b6-de146"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference",
            "value"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b6-de153"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference",
            "value"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b6-de154"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference",
            "value"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b6-de155"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference",
            "value"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b6-de160"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference",
            "value"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b6-de161"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference",
            "value"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b7-ded9"
            }
          ]
        }
      ]
    }
  ],
  "extension" : [
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Daily caffeine intake"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B6.DE139 Daily caffeine intake\n @activity: ANC.B6 Profile\n @description: Assesses whether the woman consumes more than 300 mg of caffeine per day\n*/\ndefine \"Daily caffeine intake\":\n [Observation: Cx.\"Daily caffeine intake\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n return O.value as FHIR.CodeableConcept"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 0
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Daily caffeine intake"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B6.DE139 Daily caffeine intake\n @activity: ANC.B6. Collect woman's profile and history\n @description: Assesses whether the woman consumes more than 300 mg of caffeine per day\n*/\ndefine \"Daily caffeine intake\":\n [Observation: Cx.\"Daily caffeine intake\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 1
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Persistent behaviours"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B7.DED9 Persistent behaviours\n @activity: ANC.B7 Symptoms & Follow-up\n @description: Which of the following behaviours persist? Select which of the following behaviours persist after being reported during last contact\n*/\ndefine \"Persistent behaviours\":\n [Observation: Cx.\"Persistent behaviours\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n return O.value as FHIR.CodeableConcept"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 2
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDT15"
        },
        {
          "url" : "name",
          "valueString" : "Should Conduct counselling on caffeine reduction"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n((((((((((\"Daily caffeine intake\" = \"More than 2 cups of coffee (brewed, filter, instant or espresso)\")\n OR (\"Daily caffeine intake\" = \"More than 4 cups of tea\"))\n OR (\"Daily caffeine intake\" = \"More than 12 bars (50g) of chocolate\"))\n OR (\"Daily caffeine intake\" = \"More than one can of soda or energy drink\"))\n OR (\"Daily caffeine intake\" = \"None of the above daily caffeine intake\"))\n OR (IF \"Daily caffeine intake\" = \"More than 2 cups of coffee (brewed, filter, instant, or espresso)\" ON MORE THAN ONE CONTACT))\n OR (IF \"Daily caffeine intake\" = \"More than 4 cups of tea\" ON MORE THAN ONE CONTACT))\n OR (IF \"Daily caffeine intake\" = \"More than 12 bars (50 g) of chocolate\" ON MORE THAN ONE CONTACT))\n OR (IF \"Daily caffeine intake\" = \"More than one can of soda or energy drink\" ON MORE THAN ONE CONTACT))\n OR (IF \"Daily caffeine intake\" = \"None of the above daily caffeine intake\" ON MORE THAN ONE CONTACT))\n OR (\"Persistant behaviours\" = \"High caffeine intake\")\n*/\ndefine \"Should Conduct counselling on caffeine reduction\":\n ContactData.\"Daily caffeine intake\" O in Cx.\"Daily caffeine intake - More than 2 cups of coffee Choices\"\n or ContactData.\"Daily caffeine intake\" in Cx.\"Daily caffeine intake - More than 4 cups of tea Choices\"\n or ContactData.\"Daily caffeine intake\" in Cx.\"Daily caffeine intake - More than 12 bars of chocolate Choices\"\n or ContactData.\"Daily caffeine intake\" in Cx.\"Daily caffeine intake - More than one can of soda or energy drink Choices\"\n or ContactData.\"Daily caffeine intake\" in Cx.\"Daily caffeine intake - None of the above daily caffeine intake Choices\"\n or (Count(PatientData.\"Daily caffeine intake\" O where O.value in Cx.\"Daily caffeine intake - More than 2 cups of coffee Choices\") >= 2)\n or (Count(PatientData.\"Daily caffeine intake\" O where O.value in Cx.\"Daily caffeine intake - More than 4 cups of tea Choices\") >= 2)\n or (Count(PatientData.\"Daily caffeine intake\" O where O.value in Cx.\"Daily caffeine intake - More than 12 bars of chocolate Choices\") >= 2)\n or (Count(PatientData.\"Daily caffeine intake\" O where O.value in Cx.\"Daily caffeine intake - More than one can of soda or energy drink Choices\") >= 2)\n or (Count(PatientData.\"Daily caffeine intake\" O where O.value in Cx.\"Daily caffeine intake - None of the above daily caffeine intake Choices\") >= 2)\n or ContactData.\"Persistent behaviours\" in Cx.\"Persistent behaviours - High caffeine intake Choices\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 3
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Current alcohol and/or other substance use"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B6.DE146 Current alcohol and/or other substance use\n @activity: ANC.B6 Profile\n @description: Whether or not the woman currently consumes any alcohol or substances\n*/\ndefine \"Current alcohol and/or other substance use\":\n [Observation: Cx.\"Current alcohol and/or other substance use\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n return O.value as FHIR.CodeableConcept"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 4
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Current alcohol and/or other substance use"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B6.DE146 Current alcohol and/or other substance use\n @activity: ANC.B6. Collect woman's profile and history\n @description: Whether or not the woman currently consumes any alcohol or substances\n*/\ndefine \"Current alcohol and/or other substance use\":\n [Observation: Cx.\"Current alcohol and/or other substance use\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 5
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDT15"
        },
        {
          "url" : "name",
          "valueString" : "Should Conduct counselling on alcohol/substance use"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n(((((\"Current alcohol and/or other substance use\" = \"Alcohol\")\n OR (IF \"Current alcohol and/or other substance use\" = \"Alcohol\" ON MORE THAN ONE CONTACT))\n OR (\"Persistent behaviours\" = \"Alcohol use\"))\n OR (\"Current alcohol and/or other substance use\" = \"Marijuana\" AND/OR \"Cocaine\" AND/OR \"Crack\" AND/OR \"Injectable drugs\" AND/OR \"Other substance use (specify)\"))\n OR (IF \"Current alcohol and/or other substance use\" = \"Marijuana\" AND/OR \"Cocaine\" AND/OR \"Crack\" AND/OR \"Injectable drugs\" AND/OR \"Other substance use (specify)\" ON MORE THAN ONE CONTACT))\n OR (\"Persistent behaviours\" = \"Substance use\")\n*/\ndefine \"Should Conduct counselling on alcohol/substance use\":\n ContactData.\"Current alcohol and/or other substance use\" in Cx.\"Current alcohol and/or other substance use - Alcohol Choices\"\n or (\n Count(\n PatientData.\"Current alcohol and/or other substance use\" O\n where O.value as FHIR.CodeableConcept in Cx.\"Current alcohol and/or other substance use - Alcohol Choices\"\n ) >= 2\n )\n or ContactData.\"Persistent behaviours\" in Cx.\"Persistent behaviours - Alcohol use Choices\"\n or ContactData.\"Current alcohol and/or other substance use\" in Cx.\"Current alcohol and/or other substance use - Marijuana Choices\"\n or ContactData.\"Current alcohol and/or other substance use\" in Cx.\"Current alcohol and/or other substance use - Cocaine Choices\"\n or ContactData.\"Current alcohol and/or other substance use\" in Cx.\"Current alcohol and/or other substance use - Injectable drugs Choices\"\n or ContactData.\"Current alcohol and/or other substance use\" in Cx.\"Current alcohol and/or other substance use - Other (specify) Choices\"\n or (\n Count(\n PatientData.\"Current alcohol and/or other substance use\" O\n where O.value as FHIR.CodeableConcept in Cx.\"Current alcohol and/or other substance use - Marijuana Choices\"\n or O.value as FHIR.CodeableConcept in Cx.\"Current alcohol and/or other substance use - Cocaine Choices\"\n or O.value as FHIR.CodeableConcept in Cx.\"Current alcohol and/or other substance use - Injectable drugs Choices\"\n or O.value as FHIR.CodeableConcept in Cx.\"Current alcohol and/or other substance use - Other (specify) Choices\"\n ) >= 2\n )\n or ContactData.\"Persistent behaviours\" in Cx.\"Persistent behaviours - Substance use Choices\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 6
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Tobacco use"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B6.DE153 Tobacco use\n @activity: ANC.B6 Profile\n @description: Whether the woman uses tobacco products\n*/\ndefine \"Tobacco use\":\n WC.Only(\n [Observation: Cx.\"Tobacco use\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.boolean"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 7
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Tobacco use"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B6.DE153 Tobacco use\n @activity: ANC.B6. Collect woman's profile and history\n @description: Whether the woman uses tobacco products\n*/\ndefine \"Tobacco use\":\n [Observation: Cx.\"Tobacco use\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 8
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Recently quit tobacco products"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B6.DE154 Recently quit tobacco products\n @activity: ANC.B6 Profile\n @description: Whether the woman has recently quit using any tobacco products\n*/\ndefine \"Recently quit tobacco products\":\n WC.Only(\n [Observation: Cx.\"Recently quit tobacco products\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.boolean"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 9
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Recently quit tobacco products"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B6.DE154 Recently quit tobacco products\n @activity: ANC.B6. Collect woman's profile and history\n @description: Whether the woman has recently quit using any tobacco products\n*/\ndefine \"Recently quit tobacco products\":\n [Observation: Cx.\"Recently quit tobacco products\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 10
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDT15"
        },
        {
          "url" : "name",
          "valueString" : "Should Conduct counselling on tobacco cessation"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n((((\"Tobacco use\" = TRUE)\n OR (IF \"Tobacco use\" = TRUE ON MORE THAN ONE CONTACT))\n OR (\"Recently quit tobacco products\" = TRUE))\n OR (IF \"Recently quit tobacco products\" = TRUE ON MORE THAN ONE CONTACT))\n OR (\"Persistant behaviours\" = \"Current tobacco use or recently quit\")\n*/\ndefine \"Should Conduct counselling on tobacco cessation\":\n ContactData.\"Tobacco use\" is true\n or (Count(PatientData.\"Tobacco use\" O where O.value = true) >= 2)\n or ContactData.\"Recently quit tobacco products\" is true\n or (Count(PatientData.\"Recently quit tobacco products\" O where O.value = true) >= 2)\n or ContactData.\"Persistent behaviours\" in Cx.\"Persistent behaviours - Recently quit tobacco products Choices\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 11
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Exposure to second-hand smoke"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B6.DE155 Exposure to second-hand smoke\n @activity: ANC.B6 Profile\n @description: Anyone in the household smokes tobacco products – whether the woman is exposed to second-hand smoke from anyone in her household\n*/\ndefine \"Exposure to second-hand smoke\":\n WC.Only(\n [Observation: Cx.\"Exposure to second-hand smoke\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.boolean"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 12
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Exposure to second-hand smoke"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B6.DE155 Exposure to second-hand smoke\n @activity: ANC.B6. Collect woman's profile and history\n @description: Anyone in the household smokes tobacco products – whether the woman is exposed to second-hand smoke from anyone in her household\n*/\ndefine \"Exposure to second-hand smoke\":\n [Observation: Cx.\"Exposure to second-hand smoke\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 13
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDT15"
        },
        {
          "url" : "name",
          "valueString" : "Should Conduct counselling on second-hand smoke"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n((\"Exposure to second\"hand smoke\" = TRUE)\n OR (IF \"Exposure to second-hand smoke\" = TRUE ON MORE THAN ONE CONTACT))\n OR (\"Persistent behaviours\" = \"Exposure to second-hand smoke in the home\")\n*/\ndefine \"Should Conduct counselling on second-hand smoke\":\n ContactData.\"Exposure to second-hand smoke\" is true\n or (Count(PatientData.\"Exposure to second-hand smoke\" O where O.value = true) >= 2)\n or ContactData.\"Persistent behaviours\" in Cx.\"Persistent behaviours - Exposure to second-hand smoke Choices\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 14
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Contraceptive use of male condoms"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B6.DE160 Contraceptive use of male condoms\n @activity: ANC.B6 Profile\n @description: Whether or not the woman (and her partner) use male condoms during sex\n*/\ndefine \"Contraceptive use of male condoms\":\n WC.Only(\n [Observation: Cx.\"Contraceptive use of male condoms\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.boolean"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 15
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Contraceptive use of male condoms"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B6.DE160 Contraceptive use of male condoms\n @activity: ANC.B6. Collect woman's profile and history\n @description: Whether or not the woman (and her partner) use male condoms during sex\n*/\ndefine \"Contraceptive use of male condoms\":\n [Observation: Cx.\"Contraceptive use of male condoms\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n return O.value as FHIR.boolean"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 16
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Contraceptive use of female condoms"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B6.DE161 Contraceptive use of female condoms\n @activity: ANC.B6 Profile\n @description: Whether or not the woman (and her partner) use female condoms during sex\n*/\ndefine \"Contraceptive use of female condoms\":\n WC.Only(\n [Observation: Cx.\"Contraceptive use of female condoms\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.boolean"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 17
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Contraceptive use of female condoms"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B6.DE161 Contraceptive use of female condoms\n @activity: ANC.B6. Collect woman's profile and history\n @description: Whether or not the woman (and her partner) use female condoms during sex\n*/\ndefine \"Contraceptive use of female condoms\":\n [Observation: Cx.\"Contraceptive use of female condoms\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n return O.value as FHIR.boolean"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 18
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDT15"
        },
        {
          "url" : "name",
          "valueString" : "Should Conduct counselling on condom use"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n((((\"Contraceptive use of male condoms\" = FALSE)\n OR (\"Contraceptive use of female condoms\" = FALSE))\n OR (IF \"Contraceptive use of male condoms\" = FALSE ON MORE THAN ONE CONTACT))\n OR (IF \"Contraceptive use of female condoms\" = FALSE ON MORE THAN ONE CONTACT))\n OR (\"Persistent behaviours\" = \"No condom use during sex\")\n*/\ndefine \"Should Conduct counselling on condom use\":\n ContactData.\"Contraceptive use of male condoms\" is false\n or (Count(PatientData.\"Contraceptive use of male condoms\" O where O.value = false) >= 2)\n or ContactData.\"Contraceptive use of female condoms\" is false\n or (Count(PatientData.\"Contraceptive use of female condoms\" O where O.value = false) >= 2)\n or ContactData.\"Persistent behaviours\" in Cx.\"Persistent behaviours - No condom use during sex Choices\""
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 19
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "FHIRHelpers"
        },
        {
          "url" : "name",
          "valueString" : "ToString"
        },
        {
          "url" : "statement",
          "valueString" : "define function ToString(value ObservationStatus): value.value"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 20
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "FHIRHelpers"
        },
        {
          "url" : "name",
          "valueString" : "ToBoolean"
        },
        {
          "url" : "statement",
          "valueString" : "define function ToBoolean(value boolean): value.value"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 21
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "WHOCommon"
        },
        {
          "url" : "name",
          "valueString" : "ModifierExtension"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n@description: Returns the single WHO core modifier extension (if present) on the given resource with the specified id.\n@comment: This function uses singleton from to ensure that a run-time exception is thrown if there\nis more than one extension on the given resource with the specified url.\n*/\ndefine function ModifierExtension(domainResource DomainResource, id String):\n singleton from ModifierExtensions(domainResource, id)"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 22
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "WHOCommon"
        },
        {
          "url" : "name",
          "valueString" : "ModifierExtensions"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n@description: Returns any WHO core modifier extensions defined on the given resource with the specified id.\n@comment: NOTE: Extensions are not the preferred approach, but are used as a way to access\ncontent that is defined by extensions but not yet surfaced in the\nCQL model info.\n*/\ndefine function ModifierExtensions(domainResource DomainResource, id String):\n domainResource.modifierExtension E\n\t where E.url = ('http://fhir.org/guides/who/core/StructureDefinition/' + id)\n\t\treturn E"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 23
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "FHIRHelpers"
        },
        {
          "url" : "name",
          "valueString" : "ToString"
        },
        {
          "url" : "statement",
          "valueString" : "define function ToString(value uri): value.value"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 24
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "FHIRHelpers"
        },
        {
          "url" : "name",
          "valueString" : "ToString"
        },
        {
          "url" : "statement",
          "valueString" : "define function ToString(value string): value.value"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 25
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "FHIRHelpers"
        },
        {
          "url" : "name",
          "valueString" : "ToConcept"
        },
        {
          "url" : "statement",
          "valueString" : "define function ToConcept(concept FHIR.CodeableConcept):\n if concept is null then\n null\n else\n System.Concept {\n codes: concept.coding C return ToCode(C),\n display: concept.text.value\n }"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 26
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "FHIRHelpers"
        },
        {
          "url" : "name",
          "valueString" : "ToCode"
        },
        {
          "url" : "statement",
          "valueString" : "define function ToCode(coding FHIR.Coding):\n if coding is null then\n null\n else\n System.Code {\n code: coding.code.value,\n system: coding.system.value,\n version: coding.version.value,\n display: coding.display.value\n }"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 27
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "WHOCommon"
        },
        {
          "url" : "name",
          "valueString" : "Only"
        },
        {
          "url" : "statement",
          "valueString" : "define function Only(observations List<Observation>):\n singleton from observations"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 28
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "id" : "effective-data-requirements",
      "url" : "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements",
      "valueCanonical" : "#effective-data-requirements"
    },
    {
      "url" : "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem",
      "valueReference" : {
        "reference" : "Device/cqf-tooling"
      }
    }
  ],
  "url" : "http://smart.who.int/anc/PlanDefinition/ANCDT15",
  "identifier" : [
    {
      "use" : "official",
      "value" : "ANC.DT.15"
    }
  ],
  "version" : "0.3.0",
  "name" : "ANCDT15",
  "title" : "ANC.DT.15 Behaviour counselling required",
  "type" : {
    "coding" : [
      {
        "system" : "http://terminology.hl7.org/CodeSystem/plan-definition-type",
        "code" : "eca-rule"
      }
    ]
  },
  "status" : "active",
  "experimental" : false,
  "date" : "2025-06-24T13:58:48-06:00",
  "publisher" : "World Health Organization (WHO)",
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "url",
          "value" : "https://www.who.int"
        }
      ]
    }
  ],
  "description" : "Depending on the woman's behaviours reported during the first contact and the woman's reported persistent behaviours, additional counselling may or may not be required ",
  "useContext" : [
    {
      "code" : {
        "system" : "http://terminology.hl7.org/CodeSystem/usage-context-type",
        "code" : "task",
        "display" : "Workflow Task"
      },
      "valueCodeableConcept" : {
        "coding" : [
          {
            "system" : "http://smart.who.int/anc/CodeSystem/activity-codes",
            "code" : "ANC.B10.",
            "display" : "Counselling, in-facility management & treatment "
          }
        ]
      }
    }
  ],
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001"
        }
      ]
    }
  ],
  "library" : [
    "http://smart.who.int/anc/Library/ANCDT15"
  ],
  "action" : [
    {
      "title" : "ANC.DT.15 Behaviour counselling required",
      "trigger" : [
        {
          "type" : "named-event",
          "name" : "ANC.B10. Counselling, in-facility management & treatment "
        }
      ],
      "action" : [
        {
          "id" : "1",
          "title" : "Conduct counselling on caffeine reduction",
          "description" : "Conduct counselling on caffeine reduction",
          "textEquivalent" : "Lowering daily caffeine intake during pregnancy is recommended to reduce the risk of pregnancy loss and low-birth-weight neonates.\n\nThis includes any product, beverage or food containing caffeine (e.g. brewed coffee, tea, cola-type soft drinks, caffeinated energy drinks, chocolate, caffeine tablets); caffeine-containing teas (black tea and green tea) and soft drinks (colas and iced tea) usually contain less than 50 mg per 250 ml serving",
          "documentation" : [
            {
              "type" : "citation",
              "label" : "WHO ANC recommendations (2016): A.10. Restricting caffeine intake (3)"
            }
          ],
          "condition" : [
            {
              "kind" : "applicability",
              "expression" : {
                "description" : "((((((((((\"Daily caffeine intake\" = \"More than 2 cups of coffee (brewed, filter, instant or espresso)\")\n OR (\"Daily caffeine intake\" = \"More than 4 cups of tea\"))\n OR (\"Daily caffeine intake\" = \"More than 12 bars (50g) of chocolate\"))\n OR (\"Daily caffeine intake\" = \"More than one can of soda or energy drink\"))\n OR (\"Daily caffeine intake\" = \"None of the above daily caffeine intake\"))\n OR (IF \"Daily caffeine intake\" = \"More than 2 cups of coffee (brewed, filter, instant, or espresso)\" ON MORE THAN ONE CONTACT))\n OR (IF \"Daily caffeine intake\" = \"More than 4 cups of tea\" ON MORE THAN ONE CONTACT))\n OR (IF \"Daily caffeine intake\" = \"More than 12 bars (50 g) of chocolate\" ON MORE THAN ONE CONTACT))\n OR (IF \"Daily caffeine intake\" = \"More than one can of soda or energy drink\" ON MORE THAN ONE CONTACT))\n OR (IF \"Daily caffeine intake\" = \"None of the above daily caffeine intake\" ON MORE THAN ONE CONTACT))\n OR (\"Persistant behaviours\" = \"High caffeine intake\")",
                "language" : "text/cql-identifier",
                "expression" : "Should Conduct counselling on caffeine reduction"
              }
            }
          ]
        },
        {
          "id" : "2",
          "title" : "Conduct counselling on tobacco cessation",
          "description" : "Conduct counselling on tobacco cessation",
          "textEquivalent" : "Health-care providers should routinely offer advice and psychosocial interventions for tobacco cessation to all pregnant women who are either current tobacco users or recent tobacco quitters",
          "documentation" : [
            {
              "type" : "citation",
              "label" : "WHO ANC recommendations (2016): B.1.5. Tobacco use (3)"
            }
          ],
          "condition" : [
            {
              "kind" : "applicability",
              "expression" : {
                "description" : "((((\"Tobacco use\" = TRUE)\n OR (IF \"Tobacco use\" = TRUE ON MORE THAN ONE CONTACT))\n OR (\"Recently quit tobacco products\" = TRUE))\n OR (IF \"Recently quit tobacco products\" = TRUE ON MORE THAN ONE CONTACT))\n OR (\"Persistant behaviours\" = \"Current tobacco use or recently quit\")",
                "language" : "text/cql-identifier",
                "expression" : "Should Conduct counselling on tobacco cessation"
              }
            }
          ]
        },
        {
          "id" : "3",
          "title" : "Conduct counselling on second-hand smoke",
          "description" : "Conduct counselling on second-hand smoke",
          "textEquivalent" : "Provide pregnant women, their partners and other household members with advice and information about the risks of second-hand smoke (SHS) exposure from all forms of smoked tobacco, as well as strategies to reduce SHS in the home",
          "documentation" : [
            {
              "type" : "citation",
              "label" : "WHO ANC recommendations (2016): B.1.5. Tobacco use (3)"
            }
          ],
          "condition" : [
            {
              "kind" : "applicability",
              "expression" : {
                "description" : "((\"Exposure to second\"hand smoke\" = TRUE)\n OR (IF \"Exposure to second-hand smoke\" = TRUE ON MORE THAN ONE CONTACT))\n OR (\"Persistent behaviours\" = \"Exposure to second-hand smoke in the home\")",
                "language" : "text/cql-identifier",
                "expression" : "Should Conduct counselling on second-hand smoke"
              }
            }
          ]
        },
        {
          "id" : "4",
          "title" : "Conduct counselling on condom use",
          "description" : "Conduct counselling on condom use",
          "textEquivalent" : "Advise to use condoms to prevent Zika, HIV and other STIs; if necessary, reassure it is OK to continue to have sex during pregnancy",
          "documentation" : [
            {
              "type" : "citation",
              "label" : "Pregnancy management with Zika (2017) (19)"
            }
          ],
          "condition" : [
            {
              "kind" : "applicability",
              "expression" : {
                "description" : "((((\"Contraceptive use of male condoms\" = FALSE)\n OR (\"Contraceptive use of female condoms\" = FALSE))\n OR (IF \"Contraceptive use of male condoms\" = FALSE ON MORE THAN ONE CONTACT))\n OR (IF \"Contraceptive use of female condoms\" = FALSE ON MORE THAN ONE CONTACT))\n OR (\"Persistent behaviours\" = \"No condom use during sex\")",
                "language" : "text/cql-identifier",
                "expression" : "Should Conduct counselling on condom use"
              }
            }
          ]
        },
        {
          "id" : "5",
          "title" : "Conduct counselling on alcohol/substance use",
          "description" : "Conduct counselling on alcohol/substance use",
          "textEquivalent" : "Health-care providers should at the earliest opportunity advise pregnant women dependent on alcohol or drugs to cease their alcohol or drug use and offer, or refer them to, detoxification services under medical supervision, where necessary and applicable",
          "documentation" : [
            {
              "type" : "citation",
              "label" : "WHO ANC recommendations (2016): B.1.6. Substance use (3)"
            }
          ],
          "condition" : [
            {
              "kind" : "applicability",
              "expression" : {
                "description" : "(((((\"Current alcohol and/or other substance use\" = \"Alcohol\")\n OR (IF \"Current alcohol and/or other substance use\" = \"Alcohol\" ON MORE THAN ONE CONTACT))\n OR (\"Persistent behaviours\" = \"Alcohol use\"))\n OR (\"Current alcohol and/or other substance use\" = \"Marijuana\" AND/OR \"Cocaine\" AND/OR \"Crack\" AND/OR \"Injectable drugs\" AND/OR \"Other substance use (specify)\"))\n OR (IF \"Current alcohol and/or other substance use\" = \"Marijuana\" AND/OR \"Cocaine\" AND/OR \"Crack\" AND/OR \"Injectable drugs\" AND/OR \"Other substance use (specify)\" ON MORE THAN ONE CONTACT))\n OR (\"Persistent behaviours\" = \"Substance use\")",
                "language" : "text/cql-identifier",
                "expression" : "Should Conduct counselling on alcohol/substance use"
              }
            }
          ]
        }
      ]
    }
  ]
}

XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.